package cn.tedu.spring.eg1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 商品测试类
 */
public class ProductTest {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(
                "cn.tedu.spring.eg1");
        Product product = context.getBean(Product.class);
        System.out.println("product="+product);
    }
}
